package com.edu.admin.entity;


import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

import com.edu.admin.common.BaseEntity;

/**
 * 班级表实体
 * 
 * @author Wangjiong
 * 
 */
@Table(name = "sys_classes")
public class SysClasses extends BaseEntity {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 6077674761553514551L;
	/**
	 * 班级编号
	 * 
	 */
	@Id
	@GeneratedValue(generator = "JDBC")
	private Long classesId;
	/**
	 * 班级同年级下编号
	 * 
	 */
	@Min(value = 1, message = "班级编号不能为空")
	private Integer classesNo;
	/**
	 * 班级名称
	 * 
	 */
	@NotBlank(message = "班级名称不能为空")
	private String classesName;
	/**
	 * 个性班名
	 * 
	 */
	private String personalityName;
	/**
	 * 学校id
	 * 
	 */
	@Min(value = 1, message = "学校不能为空")
	private Long schoolId;
	/**
	 * 学段id
	 * 
	 */
	@Min(value = 1, message = "学段不能为空")
	private Long phaseId;
	/**
	 * 年级id
	 * 
	 */
	@Min(value = 1, message = "年级不能为空")
	private Long gradeId;
	/**
	 * 入学年份
	 * 
	 */
	@NotBlank(message = "入学年份不能为空")
	private String enterYear;
	/**
	 * 毕业年份
	 * 
	 */
	@NotBlank(message = "毕业年份不能为空")
	private String graduateYear;
	/**
	 * 是否毕业 1未毕业 2已毕业
	 * 
	 */
	@Min(value = 0, message = "是否毕业不能为空")
	private Integer isGraduated;
	/**
	 * 班主任id
	 * 
	 */
	private Long teacherId;
	/**
	 * 是否使用
	 * 
	 */
	private Integer useType;
	/**
	 * 学段名称
	 * 
	 */
	@Transient
	private String phaseName;
	/**
	 * 学制
	 * 
	 */
	@Transient
	private Integer duration;
	/**
	 * 年级名称
	 * 
	 */
	@Transient
	private String GradeName;
	/**
	 * 学制年份
	 * 
	 */
	@Transient
	private Integer yearNum;
	
	public Long getClassesId() {
		return classesId;
	}
	public void setClassesId(Long classesId) {
		this.classesId = classesId;
	}
	public Integer getClassesNo() {
		return classesNo;
	}
	public void setClassesNo(Integer classesNo) {
		this.classesNo = classesNo;
	}
	public String getClassesName() {
		return classesName;
	}
	public void setClassesName(String classesName) {
		this.classesName = classesName;
	}
	public String getPersonalityName() {
		return personalityName;
	}
	public void setPersonalityName(String personalityName) {
		this.personalityName = personalityName;
	}
	public Long getSchoolId() {
		return schoolId;
	}
	public void setSchoolId(Long schoolId) {
		this.schoolId = schoolId;
	}
	public Long getPhaseId() {
		return phaseId;
	}
	public void setPhaseId(Long phaseId) {
		this.phaseId = phaseId;
	}
	public Long getGradeId() {
		return gradeId;
	}
	public void setGradeId(Long gradeId) {
		this.gradeId = gradeId;
	}
	public String getEnterYear() {
		return enterYear;
	}
	public void setEnterYear(String enterYear) {
		this.enterYear = enterYear;
	}
	public String getGraduateYear() {
		return graduateYear;
	}
	public void setGraduateYear(String graduateYear) {
		this.graduateYear = graduateYear;
	}
	public Integer getIsGraduated() {
		return isGraduated;
	}
	public void setIsGraduated(Integer isGraduated) {
		this.isGraduated = isGraduated;
	}
	public Long getTeacherId() {
		return teacherId;
	}
	public void setTeacherId(Long teacherId) {
		this.teacherId = teacherId;
	}
	public Integer getUseType() {
		return useType;
	}
	public void setUseType(Integer useType) {
		this.useType = useType;
	}
	public String getPhaseName() {
		return phaseName;
	}
	public void setPhaseName(String phaseName) {
		this.phaseName = phaseName;
	}
	public Integer getDuration() {
		return duration;
	}
	public void setDuration(Integer duration) {
		this.duration = duration;
	}
	public String getGradeName() {
		return GradeName;
	}
	public void setGradeName(String gradeName) {
		GradeName = gradeName;
	}
	public Integer getYearNum() {
		return yearNum;
	}
	public void setYearNum(Integer yearNum) {
		this.yearNum = yearNum;
	}
	
	

}
